package cn.com.bluemoon.daps.model.core.file.excel.converter;

import cn.com.bluemoon.daps.model.entity.DapDataModelTablePartition;

/**
 * hive分区字段类型
 *
 * @author Jarod.Kong
 * @date 2021/3/16 15:57
 */
public class MyPartitionFieldTypeIntegerStringConverter extends MyCodeAndNameIntegerStringConverter {

    /**
     * 若为分区表，对应的分区类型：1 String 2 Integer
     */
    public MyPartitionFieldTypeIntegerStringConverter() {
        put(1, "String");
        put(2, "Integer");
    }

    @Override
    protected Integer intDefaultValue() {
        return DapDataModelTablePartition.PARTITION_FIELD_TYPE_DEFAULT_KEY;
    }
}
